@import "tailwindcss";

@config '../tailwind.config.js';

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

@layer base {
  html {
    font-family: Arial, Helvetica, sans-serif;
  }
  :root {
    --smithy-red: 357 78.4% 45.3%;
    --smithy-red-33: 3 76% 83%;
    --smithy-red-15: 2 74% 92%;
    --smithy-black: 0 0% 9.4%;
    --smithy-light-gray: 0 0% 85%;
    --smithy-dark-gray: 0 0% 37%;
    --smithy-purple: 318 80.6% 30.4%;
    --smithy-purple-50: 313 46% 66%;
    --smithy-rose: 329 100% 42%;
    --smithy-plum: 330 59% 27%;

    /* TODO recalculate this */
    --smithy-gradient-midpoint: 354 61.5% 68.4%;

    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: var(--smithy-red);
    --primary-foreground: 0 0% 98%;
    --secondary: var(--smithy-red-15);
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
    --nav-offset: 5rem;
  }
  .dark {
    --background: var(--smithy-black);
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}
@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

.smithy-highlight-rose {
  @apply text-smithy-rose saturate-200;
}
.smithy-highlight-plum {
  @apply text-smithy-plum saturate-200;
}
.smithy-highlight-purple {
  @apply text-smithy-purple saturate-200;
}

/* Custom gradient background for SmithyPopGradient component */
.bg-smithy-pop-gradient {
  background-image:
    url("/sparks/sparks.svg"),
    linear-gradient(
      115deg,
      hsl(var(--smithy-plum)) 20%,
      hsl(var(--smithy-purple)) 30%,
      hsl(var(--smithy-rose))
    );
  background-position:
    100% 100%,
    center;
  background-size:
    150% 100%,
    100%;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .bg-smithy-pop-gradient {
    background-size:
      85% 100%,
      100%;
  }
}

@media (min-width: 1024px) {
  .bg-smithy-pop-gradient {
    background-size:
      65% 100%,
      100%;
  }
}
